package com.cet.regularexpression;

/**
 * @program: algorithm
 * @description:
 * @author: 陈恩涛
 * @create: 2021-06-21 15:07
 **/
public class Main03 {
    public static void main(String[] args) {

        String regex1 = "java\\d";
        System.out.println("java9".matches(regex1));
        System.out.println("java10".matches(regex1));
        System.out.println("javac".matches(regex1));

        System.out.println("================");

        String regex2 = "java\\D";
        System.out.println("javax".matches(regex2));
        System.out.println("java#".matches(regex2));
        System.out.println("java5".matches(regex2));

    }
}
